package com.doyens.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class Applicant implements Serializable {
    private Integer eid;
    private String photo;
    private String ename;
    private String sex;
    private String education;
    private String age;
    private String phoneNum;
    private String email;
    private Integer status;
    private String statuStr;
    private String textArea;
    private List<Interviewer> interviewers;

    //视图属性
    public String getStatuStr() {
        if (status == 0){
            statuStr = "通过";
        }else if (status == 1){
            statuStr = "未通过";
        }else if (status == 2){
            statuStr = "待面试";
        }
        return statuStr;
    }
}
